<style scoped>
  .sfz {
    background: #eaeff3;
    overflow: hidden;
  }
  .head{
    height:50px;
    /*border-bottom: 2px solid #dedde3;*/
    display: flex;
    justify-content: center;
    align-items:center;
    background: #ffffff;
    box-shadow:0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    padding-top: 10px;
  }
  .head-left{
    position: absolute;
    width:40px;
    height:100%;
    left:0;
    top:0;
    color: #7f7a8e;
    text-align: center;
  }
  .head-left h1{
    margin-top: 22px;
  }
  .head-middle{
    font-size: 16px;
    color: #7f7a8e;
  }
  .head-right{
    position: absolute;
    right:14px;
    top:25px;
    color: #7f7a8e;
  }
  .content{
    width: 100%;
    margin-top: 60px;
    /*position: relative;*/
  }
  .account{
    position: absolute;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    width:100%;
    align-items: center;
  }
  .account>div{
    display: flex;
    margin-top: 10px;
    margin-bottom: -10px;
  }
  .account>div>p{
    padding:6px 10px;
    border:1px solid #ffffff;
    border-radius: 8px;
    color: #ffffff;
  }
  .account>div>p:first-child{
    background: #83BBFF;
  }
  .account>div>p:last-child{
    background: #FE7A4A;
    margin-left: 6px;
  }
  @media screen and (max-width: 320px) {
    .account{
      bottom:160px;
    }
  }
  @media screen and (max-width:375px) and (min-width:321px) {
    .account{
      bottom:196px;
    }
  }
  @media screen and (min-width: 376px){
    .account{
      bottom:220px;
    }
  }


</style>

<template>
  <div class="sfz" ref="sfz">
    <div class="head" style="position: fixed;top: 0;width: 100%">
      <div class="head-left" @click="goBack"><h1 class="iconfont icon-xiangzuo1"></h1></div>
      <div class="head-middle"><h3>交易成功</h3></div>
      <div class="head-right"  @click="contact"><h1 class="iconfont icon-liuyan"></h1></div>
    </div>
    <div class="content">
      <img src="../assets/img/signal.png" alt="" width="100%" height="100%">
      <div class="account">
        <h3>您可在收益中</h3>
        <h3>查看已购买的股票及策略</h3>
        <div>
          <p @click="check">查看已购股票</p>
          <p @click="goBack">返回个股买卖</p>
        </div>
      </div>

    </div>

  </div>
</template>

<script>
  import host from '../config'

  export default {

    data () {
      return {

      }
    },
    mounted () {

    },
    methods: {
      goBack () {
        // this.$router.push('./signal')
        this.$router.push({path:'./qstrategy/signal',query:{id:this.$route.query.id}})
      },
      contact () {
        this.$router.push('/messageCenter')
      },
      check () {
        this.$router.push('/income/monitor')
      }
    }
  }
</script>
